Skip to content

Instantly share code, notes, and snippets.

@astiob
astiob / netflix_d75.py
Last active February 6, 2026 00:31
Netflix D75 white-point compensation: https://slow.pics/c/lfLyOmwZ (original screenshots from https://slow.pics/c/ldXHFLQu)
# white point estimated from the screenshots
netflix
.fmtc.transfer(transs='1886', transd='linear', cont=1.13309)
.fmtc.primaries(prims='709', primd='709', wd=(0.29831, 0.312059), wconv=True)
.fmtc.transfer(gcor=1/2.2)
.std.RemoveFrameProps('_Transfer')
# white point taken to be exactly D75 (no official spec, so the exact coordinates may vary depending on intermediate rounding)
netflix
.fmtc.transfer(transs='1886', transd='linear', cont=1.1239)
@Arkellys
Arkellys / REG.md
Last active February 6, 2026 00:30
A short guide to answer some of the most common questions and issues on React+Electron apps.
@gene1wood
gene1wood / analyze_pypi_package_names.py
Last active February 6, 2026 00:29
Analysis of PyPi package names and the use of dashes underscores upper and lower case
try:
import xmlrpclib
except ImportError:
import xmlrpc.client as xmlrpclib
client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
packages = client.list_packages()
total = len(packages)
dashes = len([x for x in packages if '-' in x])
@timvisee
timvisee / SUBREDDIT_LIST.md
Last active February 6, 2026 00:22
Get a list of subreddits you're subscribed to on reddit. https://timvisee.com/blog/list-export-your-subreddits/

As posted on: https://timvisee.com/blog/list-export-your-subreddits/

Get a list of your subreddits

To obtain a list of your subreddits, do the following:

  • First make sure you're logged in on reddit, on a desktop browser.
  • Then visit reddit.com/subreddits.
  • Then put the following snippet in your browsers address bar, and press Enter.
    Make sure javascript: is included at the beginning, your browser might remove it while copy-pasting for security reasons:
@ansarizafar
ansarizafar / visualstudio2019Key.txt
Created August 10, 2020 19:41
Visual Studio 2019 Product Key
Visual Studio 2019 Product Key
[Please Star this gist]
Follow My Account --> https://github.com/ch-kashif @ch-kashif
Lets do a code together
Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk
@LinuxSBC
LinuxSBC / 1password-flatpak-browser-integration.sh
Last active February 6, 2026 00:03
1Password Integration with Flatpak Browsers
#!/bin/bash
set -oue pipefail
INFO='\033[0;36m' # Cyan for general information
SUCCESS='\033[0;32m' # Green for success messages
WARN='\033[0;33m' # Yellow for warnings
ERROR='\033[0;31m' # Red for errors
NC='\033[0m' # No Color
echo "This script will help you set up 1Password in a Flatpak browser."
with
dau as (
-- This part of the query can be pretty much anything.
-- The only requirement is that it have three columns:
-- dt, user_id, inc_amt
-- Where dt is a date and user_id is some unique identifier for a user.
-- Each dt-user_id pair should be unique in this table.
-- inc_amt represents the amount of value that this user created on dt.
-- The most common case is
-- inc_amt = incremental revenue from the user on dt
@tushroy
tushroy / proxmox-realtek-r8168.md
Last active February 5, 2026 23:59
Realtek r8168 Driver for Proxmox VE Kernel version 6.8

Realtek r8168 Driver for Proxmox VE Kernel version 6.8

Blacklist r8169 kernel driver for being loaded

echo blacklist r8169 >> /etc/modprobe.d/blacklist-r8169.conf

Once all of this is completed we are going to update our GRUB to have some specific kernel parameters for our realtek driver

Serverless Claude Code Instances with Persistent Compute

1. Problem

We need a way to give each Discord channel its own persistent "computer" running Claude Code CLI, where:

  • The computer survives across sessions (disk persists)
  • It wakes up fast when a user sends a message (< 10s, ideally < 5s)
  • It costs near-zero when idle
@sgeraldes
sgeraldes / Check-Nahimic.ps1
Last active February 5, 2026 23:57
Disable Nahinic Service
# Check Nahimic service status
$nahimicService = Get-Service -Name "Nahimic service" -ErrorAction SilentlyContinue
if ($nahimicService) {
if ($nahimicService.Status -eq "Running") {
Write-Host "Nahimic service is currently running." -ForegroundColor Yellow
Write-Host "Advice: If you're experiencing issues related to Nahimic or high CPU/RAM usage, consider stopping and disabling the service."
}
else {
Write-Host "Nahimic service is present but currently not running." -ForegroundColor Green